import request from "../utils/request";

export const codes = (email) => {
  return request({
    url: '/codes',
    method: 'GET',
    params: {
      email,
    }
  })
}

export const sign = (username, email, password, code) => {
  return request({
    url: '/sign',
    method: 'POST',
    data: {
      username,
      email,
      password,
      code,
    }
  })
}

export const logins = (username, password) => {
  return request({
    url: '/login',
    method: 'POST',
    data: {
      username,
      password,
    }
  })
} 